{%extends "base.html"%}
{%block body%}
<h2>Clubs</h2>

<a href="{%url views.newclub%}">Create a New Club</a><br/><br/>

<table class="sample">
	<tr>

	    <th>Action</th>
	    <th>List</th><th>Add</th><th>Name</th><th>Website</th><th>Creation</th></tr>

{%for aclub in clubs%}
<tr class="{% cycle d0,d1 %}">

<td><a href="{%url views.deleteclub aclub.key.id%}">Delete</a></td>
<td><a href="{%url views.listclubentries aclub.key.id%}">List Entries</a> </td>
<td><a href="{%url views.clubentry aclub.key.id%}">Sign up for this Club</a> </td>
<td><a href="{%url views.editclub aclub.key.id%}">{{aclub.name|escape}} </td>
<td>	{{aclub.website|escape}} </td>
<td>  - created {{aclub.created|date:"Y/m/d H:i:s"}} by {{aclub.racedirector}}</td>
</tr>

{%endfor%}
</table>

<a href="{%url views.newclub%}">Create a New Club</a>

{%endblock%}
